package test;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Registry {
	public static String sClassName = "minhvv_class_not_found";

	public static void main(String[] args) {
		try {
			Class<?> clazz = Class.forName(Registry.sClassName);
			Constructor<?> ctor = clazz.getConstructor();
			Object object = ctor.newInstance();
			((IClass) object).show();

		} catch (ClassNotFoundException | NoSuchMethodException
				| SecurityException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		}
	}
}
